home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
mscheap2
/
pack.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-03-07
|
561b
|
35 lines
#include <stdio.h>
#include <heap.h>
//
// Example of _heappack from heap.man
//
int main()
{
void far *p1 = _fmalloc( 1000 );
void far *p2 = _fmalloc( 2000 );
void far *p3 = _fmalloc( 3000 );
_ffree( p2 );
_ffree( p3 );
printf("Before packing\n\n");
_fheapdump( stdout, 1 );
_fheappack();
printf("After packing\n\n");
_fheapdump( stdout, 1 );
return( 0 );
}